#include "cMusic.h"

cMusic::cMusic(char *fileName, FMOD::System *system)
{
	if(fileName == 0)
		return;

	if(system == 0)
		return;

	//Create the stream file for the sound
	system->createStream(fileName, FMOD_DEFAULT, 0, &m_pMusic);
}

cMusic::~cMusic()
{
	//Release the information from the music stream
	//when the music file is deleted
	if(m_pMusic != 0)
	{
		m_pMusic->release();
		m_pMusic = 0;
	}
}